
from sqlalchemy.sql.elements import Extract


def actuator(cb):
  def run(*args):
    try:
      return True, cb(*args)
    except Exception as e:
      return False, e
  return run
